package com.beater.service.impl;


import java.sql.SQLException;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.beater.dao.UserMapper;
import com.beater.dao.beans.User;
import com.beater.service.IUserService;
@Service
public class UserServiceImpl implements IUserService {

	 /**
     * 注入UserMapper接口
     */
    @Autowired
    private UserMapper userMapper;
    
	@Override
	public int saveUser(User user) {
		return userMapper.saveUser(user);
	}

	@Override
	public User getUser(String phone) {
		return userMapper.getUser(phone);
	}

	@Override
	public User getUser1(String phone, String pwd) {
		// TODO Auto-generated method stub
		return userMapper.getUser1(phone, pwd);
	}

	

}
